﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PrintDemo.Entity;
using PrintDemo.DAL;

namespace PrintDemo.BLL
{
    public class OrderBLL
    {
        private readonly OrderDAL _dal = new OrderDAL();

        public IEnumerable<OrderEntity> GetList()
        {
            return _dal.GetList();
        }

        public IEnumerable<OrderEntity> GetListByWhere(string orderId)
        {
            return _dal.GetListByWhere(string.Format("OrderId='{0}'", orderId));
        }
    }
}
